package com.babymall.controller;

import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.babymall.service.IOrdersService;

@Controller
@RequestMapping("/admin/orders")
public class AdminOrdersController {

	@Resource
	private IOrdersService ordersService;
	
	@RequestMapping("/findAll.do")
	@ResponseBody
	public Map findAll() {
		return ordersService.findAll();
	}
	
	@RequestMapping("/findPayOrder.do")
	@ResponseBody
	public Map findPayOrder() {
		return ordersService.findPayOrder();
	}
}
